package xyz.zhzby.cyzx.judge.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import xyz.zhzby.cyzx.judge.domain.DataLogInfo;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 编程语言
 * </p>
 *
 * @author zby
 * @since 2022-02-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("oj_language")
@ApiModel(value = "Language对象", description = "编程语言")
public class Language extends DataLogInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "编译命令")
    @TableField("compile_command")
    private String compileCommand;

    @ApiModelProperty(value = "运行命令")
    @TableField("run_command")
    private String runCommand;

}
